#ifndef __SCRIPT_MEMORY_H__
#define __SCRIPT_MEMORY_H__
#include <stdlib.h>
//#define SCRIPT_MEMORY_DEBUG

#ifdef SCRIPT_MEMORY_DEBUG

void *_script_calloc(int size, int num,char *file, int line);
void *_script_realloc(void *p, int size);
void _script_free(void *data);

#define script_calloc(size,num) _script_calloc(size,num,__FILE__,__LINE__)
#define script_realloc(p,size) _script_realloc(p,size)
#define script_free(data) _script_free(data)

void show_script_memory(void);

#else

#define script_calloc(size,num) calloc(size,num)
#define script_free(data) free(data)
#define script_realloc(p,size) realloc(p,size)
#define show_script_memory() 

#endif


#endif
